package com.example.prison.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 *
 * @TableName device_alarm_record
 */
@TableName(value ="device_alarm_record")
@Data
public class DeviceAlarmRecord implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 报警等级
     */
    @TableField(value = "alarm_level")
    private String alarmLevel;

    /**
     * 报警时间
     */
    @TableField(value = "time")
    private String time;

    /**
     * 报警设备序列号
     */
    @TableField(value = "sn")
    private String sn;

    /**
     * 报警设备位置
     */
    @TableField(value = "address")
    private String address;

    /**
     * 报警话术
     */
    @TableField(value = "note")
    private String note;

    /**
     * 是否处理（未处理/已处理）
     */
    @TableField(value = "solve")
    private String solve;

    /**
     * 处理人
     */
    @TableField(value = "handle")
    private String handle;

    /**
     * 处理信息
     */
    @TableField(value = "handle_message")
    private String handleMessage;

    /**
     * 报警类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 联系电话
     */
    @TableField(value = "phone")
    private String phone;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
